package org.common.utils.fasttest;

import org.eclipse.collections.api.set.primitive.MutableIntSet;
import org.eclipse.collections.impl.set.mutable.primitive.IntHashSet;

/**
 * @author zhouzhibing
 * @date 2024/5/29
 */
public class TestSet {
    public static void test() {

        MutableIntSet normals = new IntHashSet();
        for (int i = 0; i < 1000 ; i++) {
            normals.add(i);
        }

        System.out.println(normals.size());
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000; i++) {
            normals.contains(i);
        }
        long end = System.currentTimeMillis();
        System.out.println((end - start));

    }
}
